home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 March
/
CMCD0305.ISO
/
Software
/
Shareware
/
Grafica
/
falbum
/
fasetup101.exe
/
{app}
/
Templates
/
simple.tml
< prev
Wrap
Text File
|
2004-09-19
|
5KB
|
158 lines
<head>
<title>Web-gallery for [[FolderName]]</title>
<script>
var old_img= new Image();
var pagecount=Math.floor([[ImagesCount]]/[[ImagesPerPage]]);
var curpagefile='';
if ( ([[ImagesCount]]/[[ImagesPerPage]])>pagecount ) { pagecount++; }
var startborder=([[PageNumber]]-1)*[[ImagesPerPage]]+1;
var endborder=[[PageNumber]]*[[ImagesPerPage]];
function sel_image(img,fn,wd,ht)
{
old_img.border=0;
img.border=3;
old_img=img;
var im = new Image();
im.src=img;
var s='';
s='width='+wd+',height='+ht+',resizable=yes,titlebar=no,fullscreen=no';
k=fn;
while (k.indexOf('.',0)>=0)
{
k=k.replace('.','_');
}
while (k.indexOf(' ',0)>=0)
{
k=k.replace(' ','_');
}
while (k.indexOf('-',0)>=0)
{
k=k.replace('-','_');
}
popup=window.open('',k,s);
popup.innerHeight=0;
popup.document.open();
popup.document.write('<head><title>'+fn+'</title></head><body leftmargin=0 topmargin=0 bgcolor=silver><table height=100% width=100%><tr valign=center><td>');
popup.document.write('<center><img alt="Click to close window" style="cursor: hand" src='+im.src+' onClick="javascript:window.close()">');
popup.document.write('</td></tr></table></body>');
popup.focus();
}
function DrawTabs()
{
if (pagecount>1) {
for (i=0;i<pagecount;i++)
{ curpagefile='[[PageFileName]]';
if (i>0) {curpagefile=curpagefile.replace('.',''+i+'.');}
startborder=i*[[ImagesPerPage]]+1;
endborder=(i+1)*[[ImagesPerPage]];
if (endborder>[[ImagesCount]]) {endborder=[[ImagesCount]];}
if ((i+1)==[[PageNumber]])
{document.writeln('<font color=black>['+startborder+'-'+endborder+']</font>' );}
else
{document.writeln('<a href='+curpagefile+'><font color=silver>['+startborder+'-'+endborder+']</font></a>');}
}
}
}
</script>
</head>
<body>
<table border=0 cellspacing=1><tr colspan=5><td colspan=5>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center><td width=100%><font face='Tahoma' color=black size=2><b>[[FolderName]]</b></font>
<font face='Tahoma' color=gray size=2> [[[ImagesCount]] images]</font></td></tr>
</table>
</td></tr>
<tr><td colspan=5>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center><td width=100%>
<font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
<script>
DrawTabs();
</script>
</font>
</td></tr>
</table></td></tr>
[[RecordInfo]]
<tr align=center height=103>[[01]]
<td>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center>
<td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
</td>
</tr>
</table>
</td>
[[/01]] [[02]]
<td>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center>
<td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
</tr>
</table>
</td>
[[/02]] [[03]]
<td>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center>
<td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
</tr>
</table>
</td>
[[/03]] [[04]]
<td>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center>
<td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
</tr>
</table>
</td>
[[/04]] [[05]]
<td>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center>
<td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
</tr>
</table>
</td>
[[/05]]</tr>
[[/RecordInfo]]
<tr><td colspan=5>
<table bgcolor=EDEDED width=100% height=100%>
<tr align=center><td width=100%>
<font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
<script>
DrawTabs();
</script>
</font>
</td></tr>
</table></td></tr>
<td colspan=5>
<table width=100% height=100%>
<tr align=center><td width=100%><font face='Tahoma' color=silver size=1>This gallery generated by <a href='http://www.enins.com/f-album'><font color=silver>F-Album</font></a></font>
</td></tr>
</table>
</td></tr>
</table>
</body>